package com.itheima.reggie.common;

import org.springframework.util.DigestUtils;

/**
 * @author : [wangtao]
 * @className : MD5Config
 * @description : [MD5加密控制类]
 * @createTime : [2022/10/6 18:35]
 * @updateTime : [2022/10/6 18:35]
 */

public class MD5Config {
//    生产

 public static String md5Production(String password){
     StringBuffer code =new StringBuffer("qwer");
     code.append(password);
     String pwd = DigestUtils.md5DigestAsHex(code.toString().getBytes());
     return pwd;
 }
}
